<?php

class Sgit_Filter_Float implements Zend_Filter_Interface
{
    /**
     * Defined by Zend_Filter_Interface
     *
     * Returns (float) $value
     *
     * @param  string $value
     * @return float
     */
    public function filter($value)
    {
        $value=trim($value);
        
        if($value)  $value=str_replace(',','.',$value);
        
        //se deja la validacion al validator
        
        return $value;
    }
}
